package com.ovopark.organize.server.service;

import com.ovopark.organize.common.base.BaseResult;
import com.ovopark.organize.server.model.entity.FranchiseesAccurateAddress;
import com.ovopark.organize.server.model.vo.FranchiseeAccurateAddressSaveVo;

import java.util.List;
import java.util.Locale;
import java.util.Map;

/**
 * @Description: 加盟商 确址
 * @Author:zll
 * @Date:
 */
public interface FranchiseesAccurateAddressService {


    /**
     * 保存 确址
     * @param param
     * @param userId
     * @param remoteIp
     * @param platform
     * @param locale
     * @return
     */
    BaseResult saveAccurateAddress(FranchiseeAccurateAddressSaveVo param, Integer userId, String remoteIp, String platform, Locale locale);


    /**
     * 根据 线索id 获取 确址 Map<线索，Map<点位，信息>
     * @param franchiseesRegistrationIds
     * @param groupId
     * @param addressId
     * @return
     */
    Map<Integer, Map<Integer, FranchiseesAccurateAddress>> getFranchiseesAccurateAddressByRegistrationIds(List<Integer> franchiseesRegistrationIds, Integer groupId, Integer addressId);

    Map<Integer, FranchiseesAccurateAddress> getFranchiseesAccurateAddressUserByRegistrationIds(List<Integer> franchiseesRegistrationIds, Integer groupId, Integer addressId);
}
